Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Authentication.​RemoteAuthenticationContext<​TOptions>

Assembly: Microsoft.AspNetCore.Authentication

Inheritance: object → BaseContext<​TOptions> → HandleRequestContext<​TOptions> → RemoteAuthenticationContext

Base context for remote authentication.

Properties

Gets the <see cref="T:System.Security.Claims.ClaimsPrincipal" /> containing the user claims.
Properties
Gets or sets the <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationProperties" /> .
Result
Scheme
public TOptions
Options
HttpContext
Request
Response

Methods

public void
Success​()
Calls success creating a ticket with the <see cref="P:Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext`1.Principal" /> and <see cref="P:Microsoft.AspNetCore.Authentication.RemoteAuthenticationContext`1.Properties" /> .
public void
Fail​(System.​Exception failure)
Indicates that authentication failed.
failure The exception associated with the failure.
public void
Fail​(string failureMessage)
Indicates that authentication failed.
failureMessage The exception associated with the failure.
public void
HandleResponse​()
Inherited from HandleRequestContext<​TOptions>
public void
SkipHandler​()
Inherited from HandleRequestContext<​TOptions>
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object